{if $full_page}
<!-- $Id: school_list.htm 17053 2010-03-15 06:50:26Z sxc_shop $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<div class="form-div">
    <form action="javascript:searchSchool()" name="searchForm">
        <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        &nbsp;学校名称： &nbsp;<input type="text" name="keyword" /> <input type="submit" value="{$lang.button_search}" />
    </form>
</div>

    <!-- start school list -->
    <div class="list-div" id="listDiv">
        {/if}
        <!--用户列表部分-->
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th style="width:35%">学校名称</th>
                <th style="width:13%">订单捐赠总金额</th>
                <th style="width:13%">+额外捐赠金额</th>
                <th style="width:13%">捐赠金额</th>
                <th style="width:13%">捐赠次数</th>
                <th style="">{$lang.handler}</th>
            </tr>

                {foreach from=$school_list item=school}
            <tr>
                <td class="first-cell">{$school.region_name}</td>
                <td style="text-align: center">{$school.all_money}</td>
                <td style="text-align: center"><span onclick="listTable.edit(this, 'edit_add_money', {$school.region_id})">{$school.add_money}</span></td>
                <td style="text-align: center"><span onclick="listTable.edit(this, 'edit_overall_money', {$school.region_id})">{$school.overall_money}</span></td>
                <td style="text-align: center"><span onclick="listTable.edit(this, 'edit_number', {$school.region_id})">{$school.number}</span></td>
                <td align="center">
                    <a href="school_list_money.php?act=edit&id={$school.region_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
                </td>
            </tr>
            {foreachelse}
            <tr><td class="no-records" colspan="5">{$lang.no_records}</td></tr>
            {/foreach}

            <tr>
                <td align="right" nowrap="true" colspan="5">
                    {include file="page.htm"}
                </td>
            </tr>

        </table>

        {if $full_page}
    </div>
    <!-- end school list -->
<script type="text/javascript" language="JavaScript">
    <!--
    listTable.recordCount = {$record_count};
    listTable.pageCount = {$page_count};

    {foreach from=$filter item=item key=key}
    listTable.filter.{$key} = '{$item}';
    {/foreach}

    {literal}
    onload = function()
    {
        document.forms['searchForm'].elements['keyword'].focus();
        // 开始检查订单
        startCheckOrder();
    }

    /**
     * 搜索学校
     */
    function searchSchool()
    {
        listTable.filter['keywords'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
        listTable.filter['page'] = 1;
        listTable.loadList();
    }
    //-->
</script>
{/literal}
{include file="pagefooter.htm"}
{/if}